<template>
    <view class="glo-tag" :class="['glo-tag-' + type]">
        {{ text }}
    </view>
</template>
<script setup>
const props = defineProps({
    text: {
        type: String,
        default: '标签'
    },
    type: {
        type: String,
        default: 'primary'
    }
})
</script>
<style lang="scss" scoped>
.glo-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15rpx;
    height: 30rpx;
    border-radius: 8rpx;
    font-family: Alibaba PuHuiTi 2.0, Alibaba PuHuiTi 20;
    font-weight: 500;
    font-size: 19rpx;
    line-height: 23rpx;

    &.glo-tag-primary {
        background: #ECF5FF;
        color: #1677FF;
    }

    &.glo-tag-warning {
        background: #FFF0D7;
        color: #FF9C40;
    }

}
</style>